package com.pug.controller.nacos;

import com.pug.anno.login.LoginCheck;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 飞哥
 * @Title: 学相伴出品
 * @Description: 飞哥B站地址：https://space.bilibili.com/490711252
 * 记得关注和三连哦！
 * @Description: 我们有一个学习网站：https://www.kuangstudy.com
 * @date 2022/3/26 18:46
 */
@RestController
@Slf4j
@RefreshScope
@LoginCheck
@Api(tags = "配置中心")
public class HelloNacosController {

    @Value("${pug.message.count}")
    private Integer count;


    @GetMapping("/nacoscount")
    public String nacoscount() {
        return count + "";
    }

}
